<?php
//require_once 'TVB/MSPear/MSClient.class.php';
//$image = MSClient::getCaptcha();
require_once 'TVB/OAuth/common.inc.php';
$image = OAuthModel::getInstance()->getCaptcha();
if (empty($image)) {
    exit;
}

setcookie($image['cookie_name'], $image['cookie_value'], 0, '/');
header("Content-type: image/jpeg");
echo base64_decode($image['out']);
exit;
?>

